package com.zy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    @Select("select perm_code from smbms_permission where id in (select perm_id from smbms_role_permission where role_id =#{roleId})")
    List<String> getPercodes(Integer roleid);

}
